package com.songcan.model.business;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("yfk_user")
@NoArgsConstructor
@AllArgsConstructor
public class YfkUser  {

    @TableId(type = IdType.ID_WORKER)
    private Long id;

    private String phone;

    private Integer  enabled;

    private Long areaId;

    private String realName;

    private String nickName;

    private String avatorUrl;

    private Integer locked;

    private Integer gender;

    private Date createTime;

    private Integer delFlag;

    private Date deleteTime;

    private Integer isIdentify;

    private Integer isOpen;

    //扩展字段 加密盐
    private String salt;

    //扩展字段 密码
    private String password;

    public YfkUser(Long id,String phone){
        this.id = id;
        this.phone = phone;
    }
}
